<cfsilent>
<cfset set="aquaticus"/>
<cfset sizes = "small,medium,large"/>
<cfset socialurl = "http://social-networking-icons.googlecode.com/svn/trunk/" />
<cfset ignoreList=".svn" />
</cfsilent><!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="utf-8" /> 
	<title>Generator</title> 
	<style>
	textarea {
		background-color:#FFFFCC;
		border:thin solid #0000CC;
		margin:5px 0pt;
		mix-height:400px;
		height:500px;
		overflow:auto;
		padding:4px;
		width:800px;
	}
	label{display:block}
	</style>
</head> 
<body> 
<cfoutput>
<cfsavecontent variable="full">
@import url('../../assets/css/iconize.css');
</cfsavecontent>
<cfloop list="#sizes#" index="s">
<cfset setURL = socialurl & "sets/#set#/#s#/"/>
<cfset directoryPath=expandpath(".")&"/sets/"&set&"/#s#/" />
<cfdirectory action="list" directory="#directoryPath#" name="files" recurse=true/>
<cfsavecontent variable="css">
<cfloop query="files"><cfif !findnocase("svn",files.directory) and !findnocase("svn",files.name)>
.iconize.#s# .#listfirst(name,".")# {background: url(#setURL##name#) left 2px no-repeat;}</cfif>
</cfloop>
</cfsavecontent>
	<cfset full = full & css />
</cfloop>
<label for="css">CSS File for #set#</label>
<textarea name="css" id="css">
#trim(full)#
</textarea>

<cfset examples ="" />
<cfset directory=expandpath(".")&"/sets/"&set&"/#listfirst(sizes)#/" />
<cfdirectory action="list" directory="#directory#" name="filesExamples" recurse=true/>
<cfloop query="filesExamples">
<cfset examples = listappend(examples,listfirst(name,".")) />
</cfloop>

<label for="html">Main Sample File for #set#</label>
<textarea name="html" id="html">
<ul class="iconize #set# #listfirst(sizes)#">
<cfloop list="#examples#" index="e">
	<li class="#lcase(e)#">#e#</li> 
</cfloop>
</ul
</textarea>

<cfset directory=expandpath(".")&"/sets/" />
<cfdirectory action="list" directory="#directory#" name="sets" type="dir" />
<label for="main">Main Index File</label>
<textarea name="main" id="main">
<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="utf-8" /> 
	<title>View Examples</title> 
</head> 
<body> 
 <div id="description">Click to view the example page to see</div>
 <div id="example">
 <cfloop query="sets">
 <a href="sets/#name#/sample.html" >View #name#</a>
 </cfloop>
 </div>
</body> 
</html>
</textarea>
</cfoutput>
</body>
</html>
